package com.hmkj.admin.controller.orderOperation;

import com.hmkj.admin.controller.BaseController;
import com.hmkj.admin.controller.GenericController;
import com.hmkj.common.entity.dtgrid.DtGrid;
import com.hmkj.core.po.order.OrderOperation;
import com.hmkj.core.service.order.OrderOperationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping(BaseController.BASE_URI)
public class OrderOperationJsonController  extends GenericController<Integer, OrderOperation> {

    @Autowired
    private OrderOperationService orderOperationService;
    /**
     * 订单操作日志列表数据
     */
    @ResponseBody
    @RequestMapping(value = "orderOperation/list.json", method = RequestMethod.POST)
    public DtGrid tradeLogList(String dtGridPager) throws Exception{
        return orderOperationService.getDtGridList(dtGridPager, OrderOperation.class);
    }
}
